<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns="http://www.w3.org/2005/Atom"
                xmlns:a="http://www.w3.org/2005/Atom"
                xmlns:atom="http://www.w3.org/2005/Atom"
                xmlns:bc="http://brightcontent.net/ns/"
                xmlns:xh="http://www.w3.org/1999/xhtml"
                exclude-result-prefixes="xh a atom bc #default">

 <xsl:template match="/">
  <xsl:apply-templates />
 </xsl:template>

 <!-- element we don't want to copy -->
 <xsl:template match="a:link[@rel = 'self'] | a:link[@rel = 'alternate'] | a:link[@rel = 'edit']" />
 
<!-- invalid rel types we get rid of... b/c eric blew it and made one
     up at one point... -->
 <xsl:template match="a:link[@rel != 'alternate'] | a:link[@rel != 'enclosure'] | a:link[@rel != 'related'] | a:link[@rel != 'self'] | a:link[@rel != 'via']" />

 <!-- elements to copy blindly -->
 <xsl:template match="node()">
  <xsl:copy>
   <xsl:copy-of select="@*" />
   <xsl:apply-templates />
  </xsl:copy>
 </xsl:template>
</xsl:stylesheet>